package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

public class FirstActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.first_layout);

//        // 返回数据
//        Intent resultIntent = new Intent();
//        resultIntent.putExtra("data", "来自FirstActivity的数据");
//        setResult(RESULT_OK, resultIntent);
//        Log.d("FirstActivity", "返回数据并结束活动");

    }
}
